<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>留言板-注册</title>
  <link rel="stylesheet" type="text/css" href="<?php echo assets('css/form.css')?>">
</head>
<body>
  <div id="wrapper">
    <form method="post" action="<?php echo url('auth/doRegister') ?>">
    <div class="row">
        <div class="input-box">
          <label>ID</label>
          <input type="text" name="id" placeholder="请输入ID" value="<?=$inputBag['id'] ?>">
        </div>
        <div class="error">
          <?php echo $errorBag['id'] ?>
        </div>
      </div>
      <div class="row">
        <div class="input-box">
          <label>邮箱</label>
          <input type="text" name="email" placeholder="请输入邮箱地址" value="<?=$inputBag['email'] ?>">
        </div>
        <div class="error">
          <?php echo $errorBag['email'] ?>
        </div>
      </div>
      <div class="row">
        <div class="input-box">
        	<label>用户名</label>
        	<input type="text" name="userName" placeholder="请输入用户名" value="<?=$inputBag['userName'] ?>">
        </div>
        <div class="error">
          <?php echo $errorBag['userName'] ?>
        </div>
      </div>
      <div class="row">
      	<div class="input-box">
      	  <label>密&nbsp;&nbsp;&nbsp;&nbsp;码</label>
      	  <input type="password" name="password" placeholder="请输入密码">
      	</div>
      	<div class="error">
            <?php echo $errorBag['password'] ?>
           </div>
      </div>
      <div class="row">
      	<div class="input-box">
      	  <label>确认密码</label>
      	  <input type="password" name="password_confirm" placeholder="再次输入密码确认">
      	</div>
      	<div class="error">
            <?php echo $errorBag['password_confirm'] ?>
           </div>
      </div>
      <!-- <div class="row">
           <div class="input-box">
             <label>头像</label>
             <input type="file" name="avatar">
           </div>
           <div class="error">
            <?php echo $errorBag['avatar'] ?>
           </div>
      </div> -->
      <div class="row">
          <button class="btn-large">立即注册</button>
      </div>
      <div class="info">
        已有账号？现在<a href="<?php echo url('auth/signin') ?>">登录</a>
      </div>
    </form>
  </div>
</body>
</html>